﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace CDV.MC.MatrixDriver.WebApp.Data
{
    public class MatrixInfo
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        [DisplayName("矩阵ID")]
        public int ID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("矩阵名称")]
        public string Name { get; set; }

        /// <summary>
        /// 矩阵设备描述信息
        /// </summary>
        [DisplayName("矩阵设备描述")]
        public string Description { get; set; }

        /// <summary>
        /// 网络连接IP地址
        /// </summary>
        [DisplayName("网络地址")]
        public string IPAddress { get; set; }

        /// <summary>
        /// 网络连接端口
        /// </summary>
        [DisplayName("网络端口")]
        public int Port { get; set; }

        /// <summary>
        /// 矩阵规模
        /// </summary>
        public MatrixScaleInfo Scale { get; set; }

        /// <summary>
        /// 矩阵规模
        /// </summary>
        [DisplayName("矩阵规模")]
        public string ScaleText { get { return Scale?.ToString(); } }

        /// <summary>
        /// 在线状态
        /// </summary>
        [DisplayName("在线状态")]
        public bool IsOnline { get; set; }
    }
}
